package com.tencreat.service.account;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tencreat.common.constant.TencreatIdAndName;
import com.tencreat.common.core.HttpResult;
import com.tencreat.common.core.domain.model.ReqIdParam;
import com.tencreat.domain.account.MallRegion;

import java.util.List;
import java.util.Map;

/**
 * 【请填写功能名称】Service接口
 *
 * @author tencreat
 * @date 2021-09-17
 */
public interface IMallRegionService  extends IService<MallRegion> {

    HttpResult<List<TencreatIdAndName>> getProvince();

    HttpResult<List<TencreatIdAndName>> getCityAndCounty(ReqIdParam reqIdParam);
    HttpResult<List<TencreatIdAndName>> getCity(ReqIdParam reqIdParam);
    public String getNameBycounty(Long id);

    String getCounty(Long county);

    /**
     * 分页查询
     * @param iPage 分页参数
     * @param mallRegion 查询条件
     * @return 分页结果
     */
    IPage<MallRegion> page(IPage<?> iPage, MallRegion mallRegion);

    Map<String, List<MallRegion>> regionList(MallRegion mallRegion);
}
